3.7 What is the running time of the following code?
public static List makeList( int N )
{
ArrayList lst = new ArrayList<>( );
for( int i = 0; i < N; i++ )
{
lst.add( i );
lst.trimToSize( );
}
}
 
 
View Solution
 
 
 
<< Back Next >>